package cn.xuqiudong.rpc.test.service;

import cn.xuqiudong.rpc.spring.annotation.XqdService;
import org.springframework.beans.factory.InitializingBean;

/**
 * 描述:
 * @author Vic.xu
 * @date 2022-02-23 11:48
 */
@XqdService
public class DemoServiceImpl implements DemoService, InitializingBean {

    @Override
    public String say(String name, int age) {
        return "我是" + name + ", 今年" + age + "岁！";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("DemoServiceImpl  afterPropertiesSet");
    }
}
